<admintpl file="header" />
</head>

<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('News/index')}">新闻列表</a></li>
			<li><a href="{:U('News/add')}">新增新闻</a></li>
		</ul>
		<form class="well form-search pd0" method="post"  id="form1">
			<table class="table table-condensed">
				<tbody>
					<tr>
						<td>
							新闻标题 ：
						</td>
						<td>
							<input type="text" name="name" class="wd200" value="{$formget.name}">
						</td>
						<td>
							新闻类型：
						</td>
						<td>
							<select name="news_type_id">
								<option value="">{:L("ALL")}</option>
								<foreach name="newsType" item="vo" key="k">
									<option value="{$k}">{$vo}</option>
								</foreach>
							</select>
						</td>
						<td>
							<input type="submit" class="btn btn-primary" onclick="javascript:form1.action='{:U("News/index")}';" value="搜索" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>新闻标题</th>
						<th>缩略图</th>
						<th>新闻作者</th>
						<th>新闻简介</th>
						<th>新闻类型</th>
						<th>发布时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.name}</td>
							<td>
								<img src="{$vo.news_img}" width="50"/>
							</td>
							<td>{$vo.news_author}</td>
							<td>{$vo.news_about|msubstr=0,10,'utf-8',true}</td>
							<td>{$newsType[$vo['news_type_id']]}</td>
							<td>{$vo.create_time}</td>
							<td>
								<a href="{:U('News/edit',array('id'=>$vo['id']))}">编辑</a> |
								<a href="{:U('News/delete',array('id'=>$vo['id']))}">删除</a>|
								<a href="{:U('News/body',array('id'=>$vo['id']))}" title="详情">
									&gt;&gt;&gt;
								</a>
							</td>
						</tr>
					</foreach>
				</tbody>
				<!--
				<tfoot>
					<tr>
						<th width="50">ID</th>
						<th>学生名称</th>
						<th>学生年龄</th>
						<th>学生性别</th>
						<th>操作</th>
					</tr>
				</tfoot>
				-->
			</table>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>

</html>